from django.shortcuts import render

from note.models import Note


def view(request, module, file):
    return render(request, module + '/' + file)

def readNote(request, id):
    note = Note.objects.filter(id=id).first()
    return render(request, "test/test_view.html", {"id": id})